import request from '@/utils/request'

export function pageInfo(params) {
    return request({
      url: '/sms/role/page',
      method: 'get',
      params
    })
  }

  export function roleInfo(id) {
    return request({
      url: '/sms/role/info',
      method: 'get',
      params: {id}
    })
  }

  export function roleAdd(data) {
    return request({
      url: '/sms/role/add',
      method: 'post',
      data
    })
  }

  export function roleUpdate(data) {
    return request({
      url: '/sms/role/update',
      method: 'post',
      data
    })
  }

  export function delteBatch(data) {
    return request({
      url: '/sms/role/deleteBatch',
      method: 'post',
      data
    })
  }

  export function roleDelete(id) {
    return request({
      url: '/sms/role/delete',
      method: 'get',
      params: { id }
    })
  }